package com.bsj.travel.def.common.DO;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/***
 * @description UserProductDO
 * @author LiJiaXin
 * @version 1.0.0
 * @time 2024/1/17 15:55
 **/
@Data
@NoArgsConstructor
@TableName(value = "tab_user_product")
public class UserProductDO {

    /**
     * 用户id
     */
    @TableField(value = "userId")
    private Integer userId;

    /**
     * 产品id
     */
    @TableField(value = "productId")
    private Long productId;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    public UserProductDO(Integer userId, Long productId) {
        this.userId = userId;
        this.productId = productId;
    }

}
